import request from '@/router/axios';


// 获取ai类型下拉
export const getAiType = (params) => {
  return request({
    url: '/api/PcPublicService/GetDictionaryList',
    method: 'get',
    params
  })
}
// 列表
export const getAiList = (current, size, params) => {
  return request({
    url: '/api/ManageAIafflatus/GetAIafflatusList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
// 添加或修改ai
export const eidtOraddlistAi = (params) => {
  return request({
    url: '/api/ManageAIafflatus/AddOrEditAIafflatus',
    method: 'post',
    data: params
  })
}
// 修改灵感状态
export const editAiStatus = (params) => {
  return request({
    url: '/api/ManageAIafflatus/EditAIafflatusState',
    method: 'post',
    data: params
  })
}

// 删除灵感
export const deleteAi = (params) => {
  return request({
    url: '/api/ManageAIafflatus/DelAIafflatus',
    method: 'post',
    data: params
  })
}
